package com.bwie.service;

import com.bwie.pojo.TbProd;
import com.bwie.pojo.TbType;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;

/**
 * description:
 *
 * @Author caoshuaifeng
 * @Create 2025/3/3 9:35
 * @Version 1.0
 */
public interface TbProdService {
    R getProdList(PageInfoVo pageInfoVo);

    R addProd(TbProd tbProd);


    R uploadFile(MultipartFile file);

    R getProdById(Integer prodId);

    R deleteProdById(Integer prodId);

    R updateProd(TbProd tbProd);

    R deleteAll(ArrayList<TbProd> tbProds);

    R getTypeList();

    void exportExcel(HttpServletResponse response) throws Exception;

    R importExcel(MultipartFile file);
}
